<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:69:"G:\wamp64\www\makeup\public/../application/admin\view\admin\list.html";i:1575898010;s:62:"G:\wamp64\www\makeup\application\admin\view\common\header.html";i:1575897703;s:63:"G:\wamp64\www\makeup\application\admin\view\common\sidebar.html";i:1575897750;s:62:"G:\wamp64\www\makeup\application\admin\view\common\footer.html";i:1566226504;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
	  <meta charset="utf-8">
	  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	  <meta name="description" content="Geeker">
	  <meta name="author" content="liutao">
	  <meta name="keyword" content="Geeker">
	  <title>makeup私塾后台管理页面</title>

	  <!-- Favicons -->
	  <link href="http://127.0.0.1:8080/makeup/public/static/admin/images/favicon.png" rel="icon">
	  <link href="http://127.0.0.1:8080/makeup/public/static/admin/images/apple-touch-icon.png" rel="apple-touch-icon">

	  <!-- Bootstrap core CSS -->
	  <link href="http://127.0.0.1:8080/makeup/public/static/admin/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	  <!--external css-->
	  <link href="http://127.0.0.1:8080/makeup/public/static/admin/lib/font-awesome/css/font-awesome.css" rel="stylesheet" />
	  <!-- Custom styles for this template -->
	  <link href="http://127.0.0.1:8080/makeup/public/static/admin/css/style.css" rel="stylesheet">
	  <link href="http://127.0.0.1:8080/makeup/public/static/admin/css/style-responsive.css" rel="stylesheet">
	</head>

	<body>
	  <section id="container">
		<!--header start-->
				<header class="header black-bg">
		  <div class="sidebar-toggle-box">
			<div class="fa fa-bars tooltips" data-placement="right" data-original-title="切换导航"></div>
		  </div>
		  <!--logo start-->
		  <a href="index.html" class="logo"><b>makeup</b></a>
		  <!--logo end-->

		  <div class="top-menu">
			<ul class="nav pull-right top-menu">
			  <li><a class="logout" href="<?php echo url('admin/logout'); ?>">注销</a></li>
			</ul>
		  </div>
		</header>
		
		<!--header end-->
		
		<!--sidebar start-->
			<aside>
	  <div id="sidebar" class="nav-collapse ">
		<!-- sidebar menu start-->
		<ul class="sidebar-menu" id="nav-accordion">
		  <p class="centered">
			<a href="<?php echo url('index/index'); ?>">
			  <img src="http://127.0.0.1:8080/makeup/public/static/admin/images/liutao.jpg" class="img-circle" width="80">
			</a>
		  </p>
		  <h5 class="centered" style="font-size: 20px; margin-top: 20px;"><?php echo \think\Request::instance()->session('adminname'); ?></h5>
		  <li class="mt sub-menu"> 
			<a href="javascript:;"> 
			  <span>管理员</span>
			  </a>
			<ul class="sub">
			  <li><a href="<?php echo url('admin/index'); ?>">管理员列表</a></li>
			</ul>
		  </li>
		  <li class="sub-menu">
			<a href="javascript:;">
			  <span>会员</span>
			  </a>
			<ul class="sub">
			  <li><a href="<?php echo url('user/index'); ?>">会员列表</a></li>
			</ul>
		  </li>
		  <li class="sub-menu">
			<a href="javascript:;">
			  <span>栏目管理</span>
			  </a>
			<ul class="sub">
			  <li><a href="<?php echo url('cate/index'); ?>">栏目列表</a></li>
			</ul>
		  </li>
		  <li class="sub-menu">
			<a href="javascript:;">
			  <span>产品管理</span>
			  </a>
			<ul class="sub">
			  <li><a href="<?php echo url('Article/index'); ?>">产品列表</a></li>
			</ul>
		  </li>
		  <li class="sub-menu">
			<a href="javascript:;">
			  <span>文章管理</span>
			  </a>
			<ul class="sub">
			  <li><a href="<?php echo url('Produce/index'); ?>">文章列表</a></li>
			</ul>
		  </li>
		</ul>
		<!-- sidebar menu end-->
	  </div>
	</aside>
	
	<script type="text/javascript">
		document.querySelectorAll("");	
	</script>
	
		<!--sidebar end -->
		
		
		<!--main content start-->
		<section id="main-content">
		  <section class="wrapper site-min-height">
			<!-- row -->
			<p class="nav-size mt">
			  <a href="<?php echo url('index/index'); ?>">系统</a> / 管理员列表
			</p>
			<div class="row mt">
			  <div class="col-md-12">
				<div class="content-panel">
				  <table class="table table-striped table-advance table-hover">
					<a href="<?php echo url('add'); ?>">
					  <button type="button" class="btn btn-theme add_margin">
						Add
					  </button>
					</a>
					<hr>
					<thead>
					  <tr>
						<th class="text-center" width="10%"></i> ID</th>
						<th class="text-center" width="40%"></i> 管理员名称</th>
						<th class="text-center"></i> 管理员状态</th>
						<th class="text-center" width="26%">操作</th>
					  </tr>
					</thead>
					
					<tbody>
					  <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
					  <tr class="text-center">
						<td><?php echo $vo['id']; ?></td>
						<td class=""><?php echo $vo['username']; ?></td>
						<td>
							<?php if($vo['state'] != 1): ?>
							  <span class="label label-danger label-mini">禁用</span>
							<?php else: ?>
							  <span class="label label-info label-mini">启用</span>
							<?php endif; ?>
						</td>
						
						
						<td>
						  <!-- 管理员状态修改开始 -->
						  <?php if($vo['state'] != 1): ?>
						    <button class="btn btn-success btn-xs" data-toggle="modal" data-target="#<?php echo $vo['username']; ?>" title="启用">启用</button>
						  <?php else: ?>
						    <button class="btn btn-danger btn-xs"  data-toggle="modal" data-target="#<?php echo $vo['username']; ?>" title="禁用">禁用</button>	
						  <?php endif; ?>
						  <!-- Modal strat -->
						  <div class="modal fade" id="<?php echo $vo['username']; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						    <div class="modal-dialog">
						      <div class="modal-content">
						        <div class="modal-header">
						          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								  <?php if($vo['state'] != 1): ?>
						            <h4 class="modal-title" id="myModalLabel">确认要启用吗？</h4>
								  <?php else: ?>
								    <h4 class="modal-title" id="myModalLabel">确认要禁用吗？</h4>
								  <?php endif; ?>
						        </div>
						        <h3>									
						          <button type="button" class="btn btn-default" data-dismiss="modal">关闭 </button>
						  			&nbsp;&nbsp;
						  		  <a href="<?php echo url('state',array('state'=>$vo['state'],'id'=>$vo['id'])); ?>">
								  <?php if($vo['state'] != 1): ?>
								    <button type="button" class="btn btn-primary text-center"> 启用</button>
								  <?php else: ?>
								 	<button type="button" class="btn btn-primary text-center"> 禁用</button>
								  <?php endif; ?>
						  		  </a>
						        </h3>
						      </div>
						    </div>
						  </div>
						  <!-- Modal end -->
						  <!-- 管理员状态修改结束 -->
						  
						  <!-- 管理员修改开始 -->
						  <a href="<?php echo url('edit',array('id'=>$vo['id'])); ?>">
							<button class="btn btn-primary btn-xs" title="修改">修改</button>
						  </a>
						  <!-- 管理员修改结束 -->
						  
						  <!-- 管理员删除开始 -->
						  <button class="btn btn-danger btn-xs" data-toggle="modal" data-target="#<?php echo $vo['id']; ?>" title="删除">删除</button>
						  <!-- Modal strat -->
						  <div class="modal fade" id="<?php echo $vo['id']; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						    <div class="modal-dialog">
						      <div class="modal-content">
						        <div class="modal-header">
						          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
						          <h4 class="modal-title" id="myModalLabel">确认要删除吗？</h4>
						        </div>
						        <h3>
						          <button type="button" class="btn btn-default" data-dismiss="modal">关闭 </button>
								  &nbsp;&nbsp;
								  <a href="<?php echo url('admin/del',array('id'=>$vo['id'])); ?>">
						            <button type="button" class="btn btn-primary text-center"> 删除</button>
								  </a>
						        </h3>
						      </div>
						    </div>
						  </div>
						  <!-- Modal end -->
						  <!-- 管理员删除结束 -->
						  
						</td>
					  </tr>	
					  <?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
				  </table>
				  <!-- 分页 -->
				  <div class="text-right" style="margin-right: 20px;">
				  <?php echo $list->render(); ?>
				  </div>
				</div>
				<!-- /content-panel -->
			  </div>
			  <!-- /col-md-12 -->
			</div>
			<!-- /row -->
		  </section>
		</section>
		<!-- /MAIN CONTENT -->
		<!--main content end-->

		
		<!--footer start-->
				<footer class="site-footer navbar-fixed-bottom">
		  <div class="text-center">
			<p>
			  &copy; Copyrights <strong>Geeker</strong>. All Rights Reserved
			</p>
			<div class="credits">
			  技术支持 <a href="https://www.liutaoqq.xyz/" target="_blank">刘涛</a>
			</div>
			<a href="index.html" class="go-top">
			  <i class="fa fa-angle-up"></i>
			</a>
		  </div>
		</footer>
		
		<!--footer end-->
	  </section>
	  
	  <!-- js placed at the end of the document so the pages load faster -->
	  <script src="http://127.0.0.1:8080/makeup/public/static/admin/lib/jquery/jquery.min.js"></script>
	  <script src="http://127.0.0.1:8080/makeup/public/static/admin/lib/bootstrap/js/bootstrap.min.js"></script>
	  <script class="include" type="text/javascript" src="http://127.0.0.1:8080/makeup/public/static/admin/lib/jquery.dcjqaccordion.2.7.js"></script>
	  <script src="http://127.0.0.1:8080/makeup/public/static/admin/lib/jquery.scrollTo.min.js"></script>
	  <script src="http://127.0.0.1:8080/makeup/public/static/admin/lib/jquery.nicescroll.js" type="text/javascript"></script>
	  <!--common script for all pages-->
	  <script src="http://127.0.0.1:8080/makeup/public/static/admin/lib/common-scripts.js"></script>
	  <!--script for this page-->
	</body>
</html>
